from django import template

register = template.Library()

@register.filter(name='abc')
def key(d,key):
    d = int(d)
    key = int(key)
    result = d % key
    return result

